<?php
/*
* Template Name: Blog
*/
?>

<?php get_header(); ?>
            
            
       	  <div id="blog_cont">
                	
                    <?php $paged=get_query_var('paged'); ?>
                
                	<?php query_posts('category_name=blog&posts_per_page=5&paged='.$paged); ?>
                	
                    <?php if( have_posts() ): while( have_posts() ): the_post(); ?>
                    <div class="post">
                    	<h3 class="blog_title bebas"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
                        <p class="post_details">Posted by: <?php the_author_posts_link(); ?> on <?php echo get_the_date(); ?></p>
                        
						<?php the_content("Read more."); ?>
                        
                        <p class="tagCat">Posted in: <?php the_category(', '); ?></p>
                        <?php the_tags('<p class="tagCat">Tags: ', ', ', '</p>') ?>
                        
                        <div id="comment_wrapper">
				    		<ul>
									<a href="<?php the_permalink(); ?>"><li id="comment_count">
										<?php comments_number( '0', '1', '%' ); ?>
                                   </li></a>
                                   <li id="leave_comment">     
                                        <a href="<?php the_permalink(); ?>">Leave a comment</a>
                        			</li>
                              </ul>     	                
                        </div>
                        
                        <div class="end clear"></div>
                    </div>
                    <?php endwhile; else:?>
                    Sorry No Content... 
                    <?php endif; ?>
                    
                    <!--<div id="right" style="float: right; width: 250px; background: #333; color: #fff; padding: 10px;">
                    
                    	<?php //get_sidebar(); ?>
                    
                    </div>-->
                    
                    <div class="navigation"><p><?php posts_nav_link(); ?></p></div>
                    
                    <div class="clear"></div>
          </div><!-- end blog content -->
            
<?php get_footer(); ?>